import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import plane from '../views/plane.vue'
import test from '../views/test.vue'
import tubing from '../views/tubing.vue'
import tubing2 from '../views/tubing2.vue'
import tubing3 from '../views/tubing3.vue'
import jiqiecharts from '../views/jiqiecharts.vue'



Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/tubing',
    name: 'tubing',
    component: tubing
  },
  {
    path: '/tubing2',
    name: 'tubing2',
    component: tubing2
  },
  {
    path: '/tubing3',
    name: 'tubing3',
    component: tubing3
  },
      {
    path: '/jiqiecharts',
    name: 'jiqiecharts',
    component: jiqiecharts
  },
    {
    path: '/plane',
    name: 'plane',
    component: plane
  },
  {
    path: '/test',
    name: 'test',
    component: test
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
